package com.tecode.controller;

import com.tecode.bean.Songsheet;
import com.tecode.bean.User;
import com.tecode.service.RecommendedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/4/15.
 */
@Controller
public class Recommended {
    @Autowired
    private RecommendedService service;

    @RequestMapping("/recommended")
    @ResponseBody
    public Map recommended() {
        Map map=new HashMap();
       map.put("list",service.recommended());
        return map;
    }
    @RequestMapping("/recommended2")
    @ResponseBody
    public Map recommended2() {
        Map map=new HashMap();

        map.put("list",service.recommended2());
        return map;
    }

}
